"""JSON utility code."""

from django.http import HttpResponse
from django.utils import simplejson

class JsonResponse(HttpResponse):
    def __init__(self, object):
        content = simplejson.dumps(object)
        super(JsonResponse, self).__init__(content, mimetype='text/javascript')#mimetype='application/json')
